package io.renren.modules.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.api.dao.PsCouponDao;
import io.renren.modules.api.entity.PsCouponEntity;
import io.renren.modules.api.service.PsCouponService;



@Service("psCouponService")
public class PsCouponServiceImpl implements PsCouponService {
	@Autowired
	private PsCouponDao psCouponDao;
	
	@Override
	public PsCouponEntity queryObject(Long id){
		return psCouponDao.queryObject(id);
	}
	
	@Override
	public List<PsCouponEntity> queryList(Map<String, Object> map){
		return psCouponDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return psCouponDao.queryTotal(map);
	}
	
	@Override
	public void save(PsCouponEntity psCoupon){
		psCouponDao.save(psCoupon);
	}
	
	@Override
	public void update(PsCouponEntity psCoupon){
		psCouponDao.update(psCoupon);
	}
	
	@Override
	public void delete(Long id){
		psCouponDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		psCouponDao.deleteBatch(ids);
	}

	@Override
	public List<PsCouponEntity> queryListByUserId(Long userId) {
		return psCouponDao.queryListByUserId(userId);
	}


}
